package com.vinobase.controller.management;



public class CountryLocalForm {
    private String name;
    private Long cultureId;
    private String cultureName;

    public CountryLocalForm() {
    }

    public CountryLocalForm(String name, String cultureName) {
        this.name = name;
        this.cultureName = cultureName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCultureId() {
        return cultureId;
    }

    public void setCultureId(Long cultureId) {
        this.cultureId = cultureId;
    }

    public String getCultureName() {
        return cultureName;
    }

    public void setCultureName(String cultureName) {
        this.cultureName = cultureName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CountryLocalForm that = (CountryLocalForm) o;

        if (cultureId != null ? !cultureId.equals(that.cultureId) : that.cultureId != null) return false;
        if (cultureName != null ? !cultureName.equals(that.cultureName) : that.cultureName != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (cultureId != null ? cultureId.hashCode() : 0);
        result = 31 * result + (cultureName != null ? cultureName.hashCode() : 0);
        return result;
    }
}
